Skip to content

feat(select): open panel as dialog on smaller screens - #5313

Merged
jeremie-lucca merged 2 commits into
release/22.1from
feat/small-display-select
Oct 6, 2026
Merged

jeremie-lucca merged 2 commits into
release/22.1from
feat/small-display-select

Conversation

@Supamiu

@Supamiu Supamiu commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description

Select now opens in a dialog when display it too small.

Partially made with Claude, especially for the base structure, as it's basically "reuse what I did for filter pill but on a dialog".

I opened a draft so we can check for conflicts and have a public storybook to play with


Optionally, technical or more in-depth description for reviewers.
Keep an empty line under your text, as well as the 5 lines that follow it.


@Supamiu Supamiu added this to the 22.1 milestone Sep 7, 2026
@Supamiu Supamiu added 🔖✨ Feature New feature (even a very small one) 🤖 Produced by AI Some code was produced by AI. (Autocompleted code doesn't require to be labeled) labels Sep 7, 2026
@Supamiu Supamiu changed the title Feat/small display select feat(select): open panel as dialog on smaller screens Sep 7, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🚀 Storybook preview deployed: https://pub-dc6d99acd6874e2aaff6219dd8a13ae2.r2.dev/PR-5313/index.html

@c-3po c-3po Bot added the 📖 Documentation changes Requires a Prisme update label Sep 9, 2026
@c-3po c-3po Bot added the 🔨 Technical Doesn't affect the output (refactor, dependencies update, cleaning, etc.) label Sep 10, 2026
@Supamiu
Supamiu marked this pull request as ready for review September 10, 2026 13:20
@Supamiu
Supamiu requested review from a team as code owners September 10, 2026 13:20
JeSuisCharlie1
JeSuisCharlie1 previously approved these changes Sep 14, 2026
Comment on lines +74 to +75
style.setProperty('--components-dialog-visibleViewportHeight', `${viewport.height}px`);
style.setProperty('--components-dialog-visibleViewportBottomOffset', `${window.innerHeight - viewport.height - viewport.offsetTop}px`);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this affect existing dialogs too? Say we have a select inside a dialog, because it's a generic var, I assume it's used by every dialog.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pushing one more commit.

…point

Below the S breakpoint the select panel opens as a modal bottom sheet carrying
its own search field, and the field itself becomes a plain button trigger so
mobile browsers stop raising the software keyboard on a control the sheet is
about to cover.

Rebased onto release/22.1: the panel markup is the one of the listbox refactor,
and the trigger now labels itself through the form field `luInputLabelledBy`
API instead of writing `aria-labelledby` itself. The form field keeps the
branch's `removeInput` and self-label tracking, which the swap between button
and text input needs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
JeSuisCharlie1
JeSuisCharlie1 previously approved these changes Oct 6, 2026
@jeremie-lucca
jeremie-lucca merged commit 72afc74 into release/22.1 Oct 6, 2026
10 of 11 checks passed
@jeremie-lucca
jeremie-lucca deleted the feat/small-display-select branch October 6, 2026 16:27

This branch was successfully deployed

2 active (1 outdated) deployments
staging — 58faa1f4 Deployed Oct 6, 2026 by jeremie-lucca via Deploy Lucca Front staging #1468
production — 3b9b49ff Deployed Oct 5, 2026 by jeremie-lucca via publish #49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📖 Documentation changes Requires a Prisme update 🔖✨ Feature New feature (even a very small one) 🔨 Technical Doesn't affect the output (refactor, dependencies update, cleaning, etc.) 🤖 Produced by AI Some code was produced by AI. (Autocompleted code doesn't require to be labeled)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants